import taskSelfFast from './task/task-self-fast'
import taskAccept from './task/task-accept'
import taskSelfRoutine from './task/task-self-routine'

export default [
  {
    path: '',
    redirect: 'union',
  },
  {
    path: 'self',
    component: { render: h => h('router-view') },
    meta: { title: '主导业务', activeSidebar: true },
    children: [
      {
        path: 'routine',
        component: () =>
          import(/* webpackChunkName: "county-self" */ '@/bigcredit/views/self/normal/Index.vue'),
        meta: { title: '常规业务' },
        children: taskSelfRoutine,
      },
      {
        path: 'fast',
        component: () =>
          import(/* webpackChunkName: "county-self" */ '@/bigcredit/views/self/fast/Index.vue'),
        meta: { title: '便捷业务' },
        children: taskSelfFast,
      },
    ],
  },
  {
    path: 'union',
    component: { render: h => h('router-view') },
    meta: { title: '推送业务' },
    children: [
      {
        path: '',
        redirect: 'routine',
      },
      {
        path: 'routine',
        component: () =>
          import(/* webpackChunkName: "county-union" */ '@/bigcredit/views/accept/Index.vue'),
        meta: { title: '常规业务', activeSidebar: true },
        children: taskAccept,
      },
    ],
  },
  {
    path: 'union_after',
    name: 'unionAfter',
    component: () =>
      import(
        /* webpackChunkName: "city-mission-after" */ '@/credit/views/city/self/after/Index.vue'
      ),
    meta: { title: '贷后详情', hidden: true },
  },
]
